﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using ComputerGraphics.Graphics;

namespace ComputerGraphics.Geometry
{
    public class Cylinder : CompoundShape
    {
        public Cylinder(Point3D center, Point3D n, double radius, Texture texture)
            : base(texture)
        {
            shapeList.Add(new Tube(center, n, radius, texture));
            shapeList.Add(new Circle(center, n, radius, texture));
            shapeList.Add(new Circle(center + n, n, radius, texture));
        }
    }
}
